Server Error in '/' Application.

Index was outside the bounds of the array.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IndexOutOfRangeException: Index was outside the bounds of the array.

Source Error:


Line 57:         if (DosyaYolu.IndexOf("/kartal/") != -1)// Eğer dosya yolunda istediğimiz değer bulunuyorsa
Line 58:         {
Line 59:             HttpContext.Current.RewritePath("~/etiketler.aspx", "", "ID=" + Request.Url.Segments[2].TrimEnd('/'), true);//Url Kontorolü             
Line 60:         }
Line 61:         if (DosyaYolu.IndexOf("/blog") != -1)// Eğer dosya yolunda istediğimiz değer bulunuyorsa

Source File: c:\inetpub\wwwroot\www.kartalotoekspertiz.com\Global.asax    Line: 59

Stack Trace:


[IndexOutOfRangeException: Index was outside the bounds of the array.]
   ASP.global_asax.Application_BeginRequest(Object sender, EventArgs e) in c:\inetpub\wwwroot\www.kartalotoekspertiz.com\Global.asax:59
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +142
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +75
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +93


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4700.0